@extends('admin.layout.main')
@section('content')

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">

            <!-- Main content -->
    <section class="content">
        <!-- Small boxes (Stat box) -->
        <div class="row">
            <div class="col-lg-10 col-xs-6">
                <div class="box">

                    <div class="box-header with-border">
                        <h3 class="box-title">用户列表</h3>
                    </div>
                    <a type="button" class="btn " href="/admin/users/create" >增加用户</a>
                    <!-- /.box-header -->
                    <div class="box-body">
                        <table class="table table-bordered">
                            <tbody>
                                <tr>
                                <th style="width: 10px">#</th>
                                <th>用户名称</th>
                                <th>操作</th>
                            </tr>
                                @foreach($adminUsers as $adminUser)
                                 <tr>
                                    <td>{{$adminUser->id}}.</td>
                                    <td>{{$adminUser->name}}</td>
                                    <td>
                                        <a type="button" class="btn" href="/admin/users/{{$adminUser->id}}/role" >角色管理</a>
                                    </td>
                                </tr>
                                @endforeach
                             
                                                        </tbody></table>
                    </div>

                </div>
            </div>
        </div>
    </section>
        <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->
        <!-- /.control-sidebar -->
    <!-- Add the sidebar's background. This div must be placed
         immediately after the control sidebar -->
    <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->
@endsection